package com.weihua.controller;

import com.weihua.web.ResStatus;
import com.weihua.web.ResponseWrap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController extends BaseController {

    @RequestMapping("get")
    public ResponseWrap get() {
        return ResponseWrap.wrap(ResStatus.SUCCESS, "郭永亮");
    }

    @RequestMapping("doLogin")
    public ResponseWrap doLogin(String username, String password, Boolean rememberMe) {
        System.out.println(username);
        System.out.println(password);
        System.out.println(rememberMe);
        return ResponseWrap.wrap(ResStatus.SUCCESS, "郭永亮");
    }

}
